package hasthi.tools;

import hasthi.metamodel.resource.ManagedResource.ResourceType;

import java.util.Random;

public class DummyAppService {
    public static void main(String[] args) throws Exception {
        int serviceCount = 1;
        if(args.length > 0){
            serviceCount = Integer.parseInt(args[0]);   
        }
        int createdCount = 0;
      
      
      Random r = new Random();
      
      while(createdCount < serviceCount){
          int i = r.nextInt(TestingUtils.APP_SERVICES.length);
          DummyServiceSet.createAService(TestingUtils.APP_SERVICES[i],ResourceType.TransientService);
          createdCount++;
      }
        
    }
}
